import type { FC } from "react";
import { useCallback } from "react";
import InitComponent from "./MarketComponent";

export type IMarketProps = {
  onClick?: any;
};

const Init: FC<IMarketProps> = (props: any) => {
  const resetMarket = useCallback(() => {
    props.onClick();
  }, [props]);

  return (
    <section className="items-center justify-items-center">
      <InitComponent onClick={resetMarket} />
    </section>
  );
};

export default Init;
